﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: AdvertisementEntity.cs
// 修改时间：2020-9-8 10:39:54
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：Advertisement 的实体类.
	/// </summary>
	[Table("Advertisement")]
	public partial class AdvertisementEntity
	{
		#region Properties
		private int? _adid = 0;
		/// <summary>
		/// 广告ID(主键)
		/// </summary>
		[Column("ADID",TypeName="int")]
		[Key]
		public int? ADID
		{
			get {return _adid;}
			set {_adid = value;}
		}
		
		private int? _userID = 0;
		/// <summary>
		/// 广告客户ID
		/// </summary>
		[Column("UserID",TypeName="int")]
		public int? UserID
		{
			get {return _userID;}
			set {_userID = value;}
		}
		
		private int? _aDType = 0;
		/// <summary>
		/// 广告类型 图片、动画、文本、代码、页面
		/// </summary>
		[Column("ADType",TypeName="int")]
		public int? ADType
		{
			get {return _aDType;}
			set {_aDType = value;}
		}
		
		private System.String _aDName = string.Empty;
		/// <summary>
		/// 广告名称
		/// </summary>
		[Column("ADName",TypeName="nvarchar(100)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String ADName
		{
			get {return _aDName;}
			set {_aDName = value;}
		}
		
		private System.String _imgUrl = string.Empty;
		/// <summary>
		/// 图片地址
		/// </summary>
		[Column("ImgUrl",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String ImgUrl
		{
			get {return _imgUrl;}
			set {_imgUrl = value;}
		}
		
		private int? _imgWidth = 0;
		/// <summary>
		/// 图片的宽度
		/// </summary>
		[Column("ImgWidth",TypeName="int")]
		public int? ImgWidth
		{
			get {return _imgWidth;}
			set {_imgWidth = value;}
		}
		
		private int? _imgHeight = 0;
		/// <summary>
		/// 图片的高度
		/// </summary>
		[Column("ImgHeight",TypeName="int")]
		public int? ImgHeight
		{
			get {return _imgHeight;}
			set {_imgHeight = value;}
		}
		
		private int? _flashWmode = 0;
		/// <summary>
		/// Flash是否透明
		/// </summary>
		[Column("FlashWmode",TypeName="int")]
		public int? FlashWmode
		{
			get {return _flashWmode;}
			set {_flashWmode = value;}
		}
		
		private System.String _aDIntro = string.Empty;
		/// <summary>
		/// 广告内容
		/// </summary>
		[Column("ADIntro",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String ADIntro
		{
			get {return _aDIntro;}
			set {_aDIntro = value;}
		}
		
		private System.String _linkUrl = string.Empty;
		/// <summary>
		/// 链接网址
		/// </summary>
		[Column("LinkUrl",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String LinkUrl
		{
			get {return _linkUrl;}
			set {_linkUrl = value;}
		}
		
		private int? _linkTarget = 0;
		/// <summary>
		/// 是否在新窗口打开
		/// </summary>
		[Column("LinkTarget",TypeName="int")]
		public int? LinkTarget
		{
			get {return _linkTarget;}
			set {_linkTarget = value;}
		}
		
		private System.String _linkAlt = string.Empty;
		/// <summary>
		/// 链接提示
		/// </summary>
		[Column("LinkAlt",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String LinkAlt
		{
			get {return _linkAlt;}
			set {_linkAlt = value;}
		}
		
		private int? _priority = 0;
		/// <summary>
		/// 广告项目的权重
		/// </summary>
		[Column("Priority",TypeName="int")]
		public int? Priority
		{
			get {return _priority;}
			set {_priority = value;}
		}
		
		private System.String _setting = string.Empty;
		/// <summary>
		/// 其他设定
		/// </summary>
		[Column("Setting",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Setting
		{
			get {return _setting;}
			set {_setting = value;}
		}
		
		private System.Boolean _isCountView = false;
		/// <summary>
		/// 是否统计浏览数
		/// </summary>
		[Column("IsCountView",TypeName="bit")]
		public System.Boolean IsCountView
		{
			get {return _isCountView;}
			set {_isCountView = value;}
		}
		
		private int? _views = 0;
		/// <summary>
		/// 浏览数
		/// </summary>
		[Column("Views",TypeName="int")]
		public int? Views
		{
			get {return _views;}
			set {_views = value;}
		}
		
		private System.Boolean _isCountClick = false;
		/// <summary>
		/// 是否统计点击数
		/// </summary>
		[Column("IsCountClick",TypeName="bit")]
		public System.Boolean IsCountClick
		{
			get {return _isCountClick;}
			set {_isCountClick = value;}
		}
		
		private int? _clicks = 0;
		/// <summary>
		/// 点击数
		/// </summary>
		[Column("Clicks",TypeName="int")]
		public int? Clicks
		{
			get {return _clicks;}
			set {_clicks = value;}
		}
		
		private System.Boolean _isAbsolutePath = false;
		/// <summary>
		/// 是否绝对路径
		/// </summary>
		[Column("IsAbsolutePath",TypeName="bit")]
		public System.Boolean IsAbsolutePath
		{
			get {return _isAbsolutePath;}
			set {_isAbsolutePath = value;}
		}
		
		private System.Boolean _isPassed = false;
		/// <summary>
		/// 是否通过审核
		/// </summary>
		[Column("IsPassed",TypeName="bit")]
		public System.Boolean IsPassed
		{
			get {return _isPassed;}
			set {_isPassed = value;}
		}
		
		private DateTime? _overdueDate = null;
		/// <summary>
		/// 广告过期时间
		/// </summary>
		[Column("OverdueDate",TypeName="datetime")]
		public DateTime? OverdueDate
		{
			get {return _overdueDate;}
			set {_overdueDate = value;}
		}
		
		#endregion
	}
}
